<?php use_helper('I18N') ?>

<?php if ($posts): ?>
  <?php if (sfContext::getInstance()->getActionName() == 'listByTag'): ?>  
  <p class="tag-title">
    <?php echo __('Archives of tag') ?> <strong><?php echo $tag ?></strong>
  </p>
  <?php endif; ?>
  
  <div id="posts">
  <?php if (count($posts) > 0): ?>
    <?php foreach ($posts as $post): ?>
    <?php include_partial('post', array('post' => $post)) ?>
    <?php endforeach; ?>
  <?php endif; ?>
  </div>
<?php endif; ?>

<?php slot('archive') ?>
  <?php include_partial('post/archive', array('archives' => $archives)) ?>
<?php end_slot() ?>
